#include "stdafx.h"
#include "rendering.h"
#include "Ball_3d.h"
#include "Flocking.h"
#include "unarchived.h"
#include "Control.h"
#include "Configuration.h"
using namespace std;


Configuration config;
Control lab;
int main(int argc, char** argv)
{
	Configuration configure;
	configure.maxSteps = 10000;
	configure.renderingEnabled = true;
	configure.bufferSize = 100;
	configure.diffusionDistanceEnabled = false;
	configure.fileheadEnabled = true;
	configure.orderParameterEnabled = false;
	configure.positionVelocityEnabled = true;
	
	configure.alignmentStrength = 40;//
	configure.alignmentType = TOPOLOGICAL;
	configure.ballRadius = 0.03;
	configure.boundaryType = OPEN;
	configure.clusteringEnabled = true;
	configure.clusterNum = 1;
	configure.cohesionStrength = 0.5;//
	configure.cohesionType = GLOBAL;//
	configure.flockSize = 512;
	configure.gridEnabled = false;
	configure.initRange = 5;
	configure.neighborNum = 30; //
	configure.neighborRange = 1000;//N
	configure.noiseStrength = 0.02;//
	configure.noiseType = UNIFORM;
	configure.systemSize =10;
	configure.timeStep = 0.05;//
	configure.weightVelocity = 0;
	
	configure.c_aS = 0.2;
	configure.c_ra = 1;//
	configure.c_rb = 0.1;//
	configure.c_re = configure.neighborRange;
	configure.c_rS = 10;
	configure.enableConfiguration();
	lab.setConfiguration( configure );
	lab.initialize();
	//lab.simulate();
	rendering(argc,argv);
	system("pause");
	return 0;
}
